//
//  ConsultingView.m
//  WE
//
//  Created by 要帅气的生活 on 15/11/28.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "ConsultingView.h"
#import "Size.h"
#import "ToolUtil.h"
@implementation ConsultingView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(25+self.frame.size.height/3, self.frame.size.height/3, self.frame.size.width/3, self.frame.size.height/3)];
        _titleLbl.font = FONT(14);
        //_titleLbl.backgroundColor = [UIColor redColor];
        
        _arrowImage = [[UIImageView alloc] initWithFrame:CGRectMake( 15, self.frame.size.height/3, self.frame.size.height/3 , self.frame.size.height/3)];
        //_arrowImage.image = [UIImage imageNamed:@"ico_arrow"];
        _arrowImage.backgroundColor = [UIColor purpleColor];
        
        _number = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width - 40, self.frame.size.height/3, 30, self.frame.size.height/3)];
        _number.backgroundColor = [UIColor greenColor];
        _number.font = FONT(14);
        
        
        _view = [[UIView alloc] initWithFrame:CGRectMake(0, self.frame.size.height-1, self.frame.size.width, 1)];
        _view.backgroundColor = [UIColor blackColor];
        
        [self addSubview:_view];
        [self addSubview:_titleLbl];
        [self addSubview:_arrowImage];
        [self addSubview:_number];
        
        self.backgroundColor = [UIColor whiteColor];
    }
    
    return self;
}

@end
